package com.daylive.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.daylive.model.SysMsg;
import com.daylive.model.TypeUser;
import com.daylive.model.User;
import com.daylive.page.Pagination;

public interface UserDao {
	public List<User> getUserList(@Param("name")String name ,Pagination page);
	public List<User> getUserList();
	public User getUserById(@Param("id") int id);
	public User getUserByAccount(@Param("account") String account);
	public User getUserByPhone(@Param("phone")String phone);
	public int addUser(User user);
	public int updateUser(User user);
	public int delUser(@Param("id") int id);
	public int delAll(String[] ids);
	public List<TypeUser> getTypeUserList();
	public int addSysMsg(SysMsg sysMsg);
	public int updateMailFormat(User user);
}
